package com.hcss.core.common.logsmgt.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcss.core.common.logsmgt.dao.OpertionDao;
import com.hcss.core.common.logsmgt.model.OpertionLog;
import com.hcss.core.mvc.BaseService;
import com.hcss.core.mvc.page.Pager;



/** 
 * @ClassName: OpertionLogService 
 * @Description: TODO 行为审核日志
 * @author lvfang
 * @date 2013-12-9 下午4:40:18 
 *  
 */
@Service("opertionLogService")
public class OpertionLogService extends BaseService{
	
	@Autowired
	private OpertionDao opertionDao;
	
	/** 
	* <p> addOpertionLog TODO 增加行为审核日志</p>
	* @param log
	* @return  int 设定文件 
	*/
	public int addOpertionLog(OpertionLog log){
		return opertionDao.addOpLog(log);
	}
	
	/**
	 * 返回所有行为日志
	 * @return
	 * @throws Exception 
	 */
	public Pager getAllOpertion(Pager page,String userName,String opModel,String opFunction,String opIp)throws Exception{
		return opertionDao.getAllOpertion(page, userName, opModel, opFunction, opIp);
	}
}
